package com.ambercrm.common;

public class Common {
    private static Common instance;

    // 获取单例
    public static Common getInstance() {
        synchronized (Common.class) {
            if (instance == null) {
                instance = new Common();
            }
        }

        return instance;
    }

    long lastClickTime = 0;

    // 判断是不是快速点击，返回true表示不是
    public boolean isNotFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime >= 400) {
            lastClickTime = time;
            return true;
        } else {
            return false;
        }
    }

    String mToken;

    public String getToken() {
        return mToken;
    }

    public void setToken(String mToken) {
        this.mToken = mToken;
    }
}